<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    //新增路由 文章分类  get post any(任何路由请求都可以通过) match正则路由匹配
    $router->resource('/article/type', 'Article\TypeController');

    // resource 是一个标准的CURD的路由的请求
    $router->resource('/article/article', 'Article\ArticleController');
});
